Managed Identities (1 / 31): In ASP.NET Core 3, in which file do you configure Authentication and Authorization?
Answer:
In ASP.NET Core 3, the Startup.cs file is where you configure various services, including authentication and authorization. The ConfigureServices method is used to register services, and the Configure method is used to add middleware to the request pipeline, including authentication middleware.
Program.cs - This file is used for configuring services in ASP.NET Core 6.0 and later, not in version 3.